<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>SQL</title>

    <script src="https://cdnjs.cloudflare.com/ajax/libs/marked/2.0.1/marked.min.js"></script>

</head>

<style>
     .container {
        display: flex;
        justify-content: space-between;
    }

    .page {
        display: flex;
        padding: 20px;
        box-sizing: border-box;
    }

    .left-page {
        width: 30%;
        background-color: #f0f0f0; /* 左侧背景色 */
    }

    .right-page {
        width: 70%;
        background-color: #e0e0e0; /* 右侧背景色 */
    }
    table {
        border-collapse: collapse;
        width: 100%;
    }
    th, td {
        border: 1px solid black;
        text-align: left; /* 文本左对齐 */
    }
</style>

<body>
    <div class="container">
        <div id="sql" class="page left-page"></div>
        <div id="markdown-content" class="page right-page"></div>
    </div>
</body>

<script>
  var sqlText = "@sql_text@";
  document.getElementById("sql").innerHTML = sqlText;

  var markdownText = "@markdown_text@";
  var markdownHtmlOutput = marked(markdownText);
  document.getElementById("markdown-content").innerHTML = markdownHtmlOutput;
</script>

</html>